var Express = require('express'),
    Router = Express.Router(),

    versionPolicy = require('../policies/policy'),

    versionController = require('../controllers/version.controller');

Router.route('/createNewVersion').all(versionPolicy.isAllowed).post(versionController.createNewVersion);

Router.route('/getAllVersions').all(versionPolicy.isAllowed).post(versionController.getAllVersions);

Router.route('/getVersioning').all(versionPolicy.isAllowed).post(versionController.getVersioning);

Router.route('/changeLockStatus').all(versionPolicy.isAllowed).post(versionController.changeLockStatus);

Router.route('/assignRandomVersion').all(versionPolicy.isAllowed).post(versionController.assignRandomVersion);

module.exports = Router;


